package service

import (
	"exam-app/exam-srv/global"
	"exam-app/exam-srv/internal/model/dao"
)

func GetExamPid(pid int) bool {
	var subject dao.Subjects
	err := global.DB.Where("id = ?", pid).First(&subject).Error
	if err != nil {
		return false
	}
	return true
}
